package com.wy.feignclient;

import com.wy.pojo.Course;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wuyue
 * @date 2020/1/13 10:02
 */
@Component
public class CourseFallBack implements  CourseClient {
    @Override
    public List<Course> findByName(String name) {
          List<Course> courses=new ArrayList<>();
            Course course=new Course();
             course.setcId("001");
            course.setcName("查询异常");
          courses.add(course);
        return courses;
    }
}
